<?php get_header(); ?>

<!-- BEGIN content -->
<div id="content">

	<?php
	if (have_posts()) : the_post();
	?>

	<!-- begin latest post -->
	<div class="latest post">
		<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
		<p class="details">
		<?php the_time('F j, Y') ?> by <?php the_author_posts_link(); ?> &nbsp;| &nbsp;<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
		</p>
		<a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
		<?php the_excerpt(); ?>
		<p class="bottom"><a class="continue" href="<?php the_permalink(); ?>">Continue Reading &raquo;</a></p>
	</div>
	<!-- end latest post -->
	
	<?php endif; ?>
	
	<?php
	if (have_posts()) :
	while(have_posts()) : the_post();
	?>
	
	<!-- begin post -->
	<div class="post">
		<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
		<p class="details">
		<?php the_time('F j, Y') ?> by <?php the_author_posts_link(); ?> &nbsp;| &nbsp;<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
		</p>
		<a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
		<?php the_excerpt(); ?>
		<p class="bottom"><a class="continue" href="<?php the_permalink(); ?>">Continue Reading &raquo;</a></p>
	</div>
	<!-- end post -->
	
	<?php endwhile; ?>
	
	<!-- begin post navigation -->
	<div class="postnav">
	<?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); else: ?>
	<p>
	<?php next_posts_link('&laquo; Older Entries'); ?> &nbsp; 
	<?php previous_posts_link('Newer Entries &raquo;'); ?>
	</p>
	<?php endif; ?>
	</div>
	<!-- end post navigation -->
	
	<?php endif; ?>

</div>
<!-- END content -->

<?php get_sidebar(); get_footer(); ?>
